//
//  PhotoFrame.m
//  测试小型VIEW的加载
//
//  Created by yishangpin2 on 15/3/5.
//  Copyright (c) 2015年 yishangpin2. All rights reserved.
//

#import "PhotoFrame.h"
#import "AppDelegate.h"
#import "TrendingCollectionsVC.h"

@implementation PhotoFrame{
    AppDelegate *delegate;

}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (IBAction)Click:(id)sender {
    delegate = [[UIApplication sharedApplication]delegate];
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
    TrendingCollectionsVC *trendingcollectionsVC = [storyboard instantiateViewControllerWithIdentifier:@"trendingcollectionsVC"];
    [delegate.CurrentViewController pushViewController:trendingcollectionsVC animated:YES];
    
}
@end
